package io.renren.modules.generator.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.generator.dao.BsnZhidaolishiDao;
import io.renren.modules.generator.entity.BsnZhidaolishiEntity;
import io.renren.modules.generator.service.BsnZhidaolishiService;


@Service("bsnZhidaolishiService")
public class BsnZhidaolishiServiceImpl extends ServiceImpl<BsnZhidaolishiDao, BsnZhidaolishiEntity> implements BsnZhidaolishiService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<BsnZhidaolishiEntity> page = this.selectPage(
                new Query<BsnZhidaolishiEntity>(params).getPage(),
                new EntityWrapper<BsnZhidaolishiEntity>()
        );

        return new PageUtils(page);
    }

}
